﻿using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Data.Entity.ModelConfiguration;
using System.Data.Entity.ModelConfiguration.Conventions;
using System.Linq;
using System.Text;

namespace Wicresoft.Message.Entity
{
    public class EmailContext : DbContext
    {
        public DbSet<Email> Emails { get; set; }

        // EFCodeFirst Bug: 必须去除表结构复数命名规范
        protected override void OnModelCreating(DbModelBuilder modelBuilder)
        {
            modelBuilder.Conventions.Remove<PluralizingTableNameConvention>();
        }
    }
}
